﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DTM.Repository
{
    /// <summary>
    /// Class <see cref="UnitOfWorkProvider"/> define unit of work provider
    /// </summary>
    public class UnitOfWorkProvider : IUnitOfWorkProvider
    {
        #region Methods

        /// <summary>
        /// Gets the unit of work.
        /// </summary>
        /// <returns></returns>
        public IUnitOfWork GetUnitOfWork()
        {
            return new UnitOfWork(new DatabaseEntities());
        }

        #endregion Methods
    }
}